﻿
@{
    ViewBag.Title = "统计查询";
}

<div class="row col-md-12 ml-0" style="min-height:5vh;">
    <strong class="font-rfs" style="margin-right: 2rem;padding-top: 0.4rem;">统计查询</strong>
</div>
<div class="row col-md-12 ml-0 pre-scrollable" style="min-height:90vh;">
    <div class="row col-md-2" style="border:1px solid #dee2e6;margin-left: 0px;padding-left: 5px;">
        <div class="row col-md-12 font-rfs" style="height:5vh;display:table-cell;text-align: center;color: #007bff;">
            统计查询工具
        </div>
        <ul class="nav navbar-nav" style="height:84vh;">
            <li class="nav-item">
                <a id="SQ-type1" class="nav-link" href="#SQtype1" data-toggle="collapse" aria-expanded="true" style="padding-top:0px;" onclick="SQSetChevron(this)">
                    <p class="font-rfs" style="margin-bottom:0em">
                        <i class="bi-chevron-double-down">&nbsp</i>工作量
                    </p>
                </a>
                <ul class="collapse list-unstyled font-rfs show" id="SQtype1">
                    <button id="SQ-WorkLoad" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-folder-plus"></i> 工作量</button>
                    <button id="SQ-DelSampleDefinition" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-trash"></i> 删除</button>
                    <button id="SQ-SetSkipWorkflow" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-gear"></i> 流程配置</button>
                    <button id="SQ-StartSample" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-caret-right-fill"></i> 开始</button>
                    <button id="SQ-SampleBatch" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-folder-symlink"></i> 样品单</button>
                    <button id="SQ-bPrintlab" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-printer-fill"></i> 标签</button>
                </ul>
                <a id="SQ-type2" class="nav-link" href="#SQtype2" data-toggle="collapse" aria-expanded="false" style="padding-top:0px;" onclick="SQSetChevron(this)">
                    <p class="font-rfs" style="margin-bottom:0em">
                        <i class="bi-chevron-double-right">&nbsp</i>统计报表
                    </p>
                </a>
                <ul class="collapse list-unstyled font-rfs" id="SQtype2">
                    <button id="SQ-AddSampleGroup" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-folder-plus"></i> 样品组</button>
                    <button id="SQ-DelSampleDefinition" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-trash"></i> 删除</button>
                    <button id="SQ-SetSkipWorkflow" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-gear"></i> 流程配置</button>
                    <button id="SQ-StartSample" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-caret-right-fill"></i> 开始</button>
                    <button id="SQ-SampleBatch" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-folder-symlink"></i> 样品单</button>
                    <button id="SQ-bPrintlab" class="btn btn-rfs" style="padding-top: 0px;"><i class="bi-printer-fill"></i> 标签</button>
                </ul>
            </li>
        </ul>
    </div>
    <div id="SQEmbed" class="row col-md-10" style="border:1px solid #dee2e6;margin-left:15px;padding-left: 0px;padding-right: 0px;">
    </div>
</div>

@section Scripts{
    <script>

        function SQSetChevron(obj) {
            if ($(obj).attr('aria-expanded') == 'true') {
                $(obj).find('i').removeClass('bi-chevron-double-down');
                $(obj).find('i').addClass('bi-chevron-double-right');
                //alert('关闭');
            } else {
                $(obj).find('i').addClass('bi-chevron-double-down');
                $(obj).find('i').removeClass('bi-chevron-double-right');
                //alert('打开');
            }
        }

        $("#SQ-WorkLoad").click(function () {
            $.post("GetStatisticalQueryCshtml", {
                QueryName: "WorkLoad"
            }, function (data) {
                $("#SQEmbed").html(data);
            });
        });

    </script>
}
